export default {
  url: "/do/select/mar_template",
  conditionLimit:null,
  selectable: false,
  showIndex: false,
  compact: 220,
  path: 'system/marketTemplate',
  title: "模版市场",
  entitys: [{"name":"id","label":"编号","type":"search"},{"name":"creator","label":"创建人","type":"user"},{"name":"createGmt","label":"创建时间","type":"date"},{"name":"updateGmt","label":"更新时间","type":"date"},{"name":"title","label":"模版名称"},{"name":"code","label":"模版编码"},{"name":"templateStatus","label":"状态","code":"templateStatus"},{"name":"context","label":"模版内容","type":"textarea"},{"name":"field","label":"元素内容","type":"inputTag"},{"name":"categorys","label":"模版分类","type":"inputTag"}],
  columns: ["title","templateStatus","creator","createGmt"],
  condition: ["title"],
  slots: {
      header$() {
      return (
        <>
        <z-action p='6utl3myl' label='添加模版' mode='dialog' fields={["title"]} type='primary' url='/do/put/mar_template' />
        </>
      )
    },
    action$({ row }) {
      return (
        <>
          <z-action p='h5ybrz4s' label='编辑' mode='dialog' fields={["title","categorys"]} link data={row} url='/do/patch/mar_template' includeTitle='r' />
<z-action p='zn2qqnoi' label={row.templateStatus != 2?'设计模版':null} data={row} mode='drawer' href='/system/marketTemplateEditor' link map={{"id":"id"}} includeTitle='r' />
<z-action p='yj2vt10v' label={row.templateStatus !== 2?'发布':null} mode='confirm' link data={row} url='/do/patch/mar_template_publish' />
<z-action p='7j1g9n1y' label={row.templateStatus == 2?'停用':null} mode='confirm' link data={row} url='/do/patch/mar_template_suspend' />
<z-action p='0bqknui0' label={row.templateStatus != 2?'删除':null} mode='confirm' link data={row} url='/do/delete/mar_template' />
        </>
      )
    }
  }
}
  